home *** CD-ROM | disk | FTP | other *** search
- package sun.print;
-
- import java.awt.print.PrinterException;
- import java.awt.print.PrinterIOException;
- import java.io.IOException;
- import java.security.PrivilegedAction;
-
- class PSPrinterJob$PrinterSpooler implements PrivilegedAction {
- PrinterException pex;
- // $FF: synthetic field
- final PSPrinterJob this$0;
-
- private PSPrinterJob$PrinterSpooler(PSPrinterJob var1) {
- this.this$0 = var1;
- }
-
- public Object run() {
- try {
- if (this.this$0.spoolFile == null || !this.this$0.spoolFile.exists()) {
- this.pex = new PrinterException("No spool file");
- return null;
- }
-
- String var1 = this.this$0.spoolFile.getAbsolutePath();
- String[] var2 = PSPrinterJob.access$600(this.this$0, PSPrinterJob.access$300(this.this$0), PSPrinterJob.access$400(this.this$0), PSPrinterJob.access$500(this.this$0), this.this$0.getJobNameInt(), 1, var1);
- Process var3 = Runtime.getRuntime().exec(var2);
- var3.waitFor();
- this.this$0.spoolFile.delete();
- } catch (IOException var4) {
- this.pex = new PrinterIOException(var4);
- } catch (InterruptedException var5) {
- this.pex = new PrinterException(var5.toString());
- }
-
- return null;
- }
-
- // $FF: synthetic method
- PSPrinterJob$PrinterSpooler(PSPrinterJob var1, PSPrinterJob.1 var2) {
- this(var1);
- }
- }
-